package com.cloud.spring.crazy.web.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.spring.crazy.dal.pojo.SysUser;

@RestController
public class UserController {

	@RequestMapping(value = "user/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
	public SysUser getUser(@PathVariable  String id) {

		SysUser u = new SysUser();
		u.setId(id);
		u.setUsername("nacy");
		return u;
	}

}
